/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：02/09/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/  

package com.application.yfstandard.struts.form;
import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import java.util.List;
import com.manager.commons.StringUtil;
import com.application.yfstandard.entity.YfStandard;
import java.util.Date;
 /**
 * 
 * Description: YfStandardForm Struts Action Form<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060 <br />
 * 
 * History: <br />
 * 
 * 02/09/2012 .
 * 
 */
public class  YfStandardForm extends ActionForm
{

	/** serialVersionUID */
	protected static final long serialVersionUID = -1L;
	
	public YfStandardForm(){
  
	}

		      
	private String id;
        
        	      
	private String fileName;
        
        	      
	private Long fileType;
	
	private String rname;
        
    /**
     * 0 公司政策
     * 1 招标规范
     * 2 开发规范
     */	      
	private Long bussType;
        
        	      
	private String operateid;
        
        	      
	private Date createDate;
        
        
        private String ids;

	                                                        
     private String createDateStr;
     
  
	
         	         	         	         	 	/**
	 * @return Returns the CreateDate.
	 */
	public String getCreateDateStr(){
	        String re = "";
		if(this.createDate == null) {
			return re;
		}
		try {
			re = StringUtil.dateToString(this.createDate);
		}
		catch(Exception e) {
			e.printStackTrace();
		}
		return re;
	}
	

	/**
	 * @param ${field.propertyName} Set the ${field.propertyName}.
	 */	
	public void setCreateDateStr(String createDateStr){
		this.createDateStr = createDateStr;
		if(this.createDateStr != null && !"".equals(this.createDateStr)) {
			try {
				this.createDate = StringUtil.stringToDate(this.createDateStr);
			}
			catch(Exception e) {
				e.printStackTrace();
			}
		}

	}
                

        	/**
	 * @return Returns the Id
	 */
	public String getId(){
		return this.id;
	}
	

	/**
	 * @param id Set the id.
	 */	
	public void setId(String id){
		this.id = id;
	}
	
        	/**
	 * @return Returns the FileName
	 */
	public String getFileName(){
		return this.fileName;
	}
	

	/**
	 * @param fileName Set the fileName.
	 */	
	public void setFileName(String fileName){
		this.fileName = fileName;
	}
	
        	/**
	 * @return Returns the FileType
	 */
	public Long getFileType(){
		return this.fileType;
	}
	

	/**
	 * @param fileType Set the fileType.
	 */	
	public void setFileType(Long fileType){
		this.fileType = fileType;
	}
	
        	/**
	 * @return Returns the BussType
	 */
	public Long getBussType(){
		return this.bussType;
	}
	

	/**
	 * @param bussType Set the bussType.
	 */	
	public void setBussType(Long bussType){
		this.bussType = bussType;
	}
	
        	/**
	 * @return Returns the Operateid
	 */
	public String getOperateid(){
		return this.operateid;
	}
	

	/**
	 * @param operateid Set the operateid.
	 */	
	public void setOperateid(String operateid){
		this.operateid = operateid;
	}
	
        	/**
	 * @return Returns the CreateDate
	 */
	public Date getCreateDate(){
		return this.createDate;
	}
	

	/**
	 * @param createDate Set the createDate.
	 */	
	public void setCreateDate(Date createDate){
		this.createDate = createDate;
	}
	
                
        
	                                                

	private List<YfStandard> yfStandardList;

       /**
	 * @return the yfstandardformList
	 */
	public List<YfStandard> getYfStandardList() {
		return yfStandardList;
	}

	/**
	 * @param yfStandardList the yfstandardformList to set
	 */
	public void setYfStandardList(List<YfStandard> yfStandardList) {
		this.yfStandardList = yfStandardList;
	}
        
	public String getIds() {
		return ids;
	}

	public void setIds(String ids) {
		this.ids = ids;
	}

	/** 
	 * Method validate
	 * @param mapping
	 * @param request
	 * @return ActionErrors
	 */
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		// TODO Auto-generated method stub
		return null;
	}

	/** 
	 * Method reset
	 * @param mapping
	 * @param request
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		// TODO Auto-generated method stub
	}

        public String toString(){
		return ReflectionToStringBuilder.toString(this,ToStringStyle.MULTI_LINE_STYLE);
	}


		public String getRname() {
			return rname;
		}


		public void setRname(String rname) {
			this.rname = rname;
		}


		
}
